﻿<?xml version="1.0" encoding="utf-8" ?>
<DataStructure>
  <TableStructure>
    <!--
    数据表定义
    Name:表名
    Description:描述
    Type:类型
    ClassName:类型名称
    -->
    <Table  Name="BusinessPartner" Description="业务伙伴" Type="MasterData"  ClassName="BusinessPartner">
      <!--
      字段定义
      Name:字段名称
      Description:字段描述
      DbType:字段类型
      PSize:字段长度
      SSize:小数位数
      DefaultValue:默认值
      PropertyName:属性名称
      IsPrimaryKey：主键
      IsUnionKey：联合主键      
      -->
      <Field Name="ObjType" Description="对象" DbType="nvarchar" PSize="max" SSize="" DefaultValue="" PropertyName="ObjectType" IsPrimaryKey="" IsUnionKey="" IsNull=""/>
      <Field Name="Activated" Description="可用" DbType="char" PSize="1" SSize="" DefaultValue="N" PropertyName="Activated" IsPrimaryKey="" IsUnionKey="" IsNull="">
        <!--
        数据有效值数据类型定义
        Name:数据类型
        -->
        <ValidDataType name="BOYesOrNo">
          <!--
          数据有效值定义
          Name：数据有效值名称
          Value：有效值
          Description:数据有效值描述
          -->
          <ValidValue Name="Yes" value="Y" Description="是"/>
          <ValidValue Name="No" value="N" Description="否"/>
        </ValidDataType>
      </Field>
      <Field Name="Creator" Description="创建人" DbType="int" PSize="" SSize="" DefaultValue="" PropertyName="Creator" IsPrimaryKey="" IsUnionKey="" IsNull=""/>
      <Field Name="CreateDate" Description="创建时间" DbType="Datetime" PSize="" SSize="" DefaultValue="" PropertyName="CreateDate" IsPrimaryKey="" IsUnionKey="" IsNull=""/>
      <Field Name="Updator" Description="更新人" DbType="int" PSize="" SSize="" DefaultValue="" PropertyName="Updator" IsPrimaryKey="" IsUnionKey="" IsNull="Yes"/>
      <Field Name="UpdateDate" Description="更新时间" DbType="Datetime" PSize="" SSize="" DefaultValue="" PropertyName="UpdateDate" IsPrimaryKey="" IsUnionKey="" IsNull="Yes"/>
      <Field Name="Remarks" Description="备注" DbType="ntext" PSize="" SSize="" DefaultValue="" PropertyName="Remarks" IsPrimaryKey="" IsUnionKey="" IsNull="Yes"/>
    </Table>
    <Table Name="BusinessPartnerLines" Description="业务伙伴行" Type="MasterDataLine"  ClassName="BusinessPartnerLines">
      <Field Name="LineNum" Description="行号" DbType="int" PSize="" SSize="" DefaultValue="" PropertyName="LineNumber" IsPrimaryKey="" IsUnionKey="Yes" IsNull=""/>
      <Field Name="VisOrder" Description="顺序号" DbType="int" PSize="" SSize="" DefaultValue="" PropertyName="VisilbeOrder" IsPrimaryKey="" IsUnionKey="" IsNull=""/>
      <Field Name="Creator" Description="创建人" DbType="int" PSize="" SSize="" DefaultValue="" PropertyName="Creator" IsPrimaryKey="" IsUnionKey="" IsNull=""/>
      <Field Name="CreateDate" Description="创建时间" DbType="Datetime" PSize="" SSize="" DefaultValue="" PropertyName="CreateDate" IsPrimaryKey="" IsUnionKey="" IsNull=""/>
      <Field Name="Updator" Description="更新人" DbType="int" PSize="" SSize="" DefaultValue="" PropertyName="Updator" IsPrimaryKey="" IsUnionKey="" IsNull="Yes"/>
      <Field Name="UpdateDate" Description="更新时间" DbType="Datetime" PSize="" SSize="" DefaultValue="" PropertyName="UpdateDate" IsPrimaryKey="" IsUnionKey="" IsNull="Yes"/>
      <Field Name="Remarks" Description="备注" DbType="ntext" PSize="" SSize="" DefaultValue="" PropertyName="Remarks" IsPrimaryKey="" IsUnionKey="" IsNull="Yes"/>
    </Table>
  </TableStructure>
  <ObjectStructure>
    <!--
    数据对象定义
    ObjectType：对象类型
    ObjectCode：对象编码
    ObjectName：对象名称
    TableName:数据表名
    NameSapace：命名空间
    IsLog:日志
    -->
    <Object ObjectType="MasterData" ObjectCode="BusinessPartner" ObjectName="业务伙伴" TableName="BusinessPartner" NameSpace="BusinessPartner" IsLog="">
      <ChildTables>
        <!--
        子表定义
        TableName：表名
        -->
        <ChildTable TableName="BusinessPartnerLines"/>
      </ChildTables>
    </Object>
  </ObjectStructure>
</DataStructure>